﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.world {
    import net.wooga.pets.events.*;
    import net.wooga.pets.interfaces.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.models.world.*;

    public class HighlightMachinesCommand extends Command {

        public var event:InfoEvent;
        public var world:WorldModel;

        override public function execute():void{
            var _local2:IRoom;
            var _local3:String;
            var _local1:Array = this.world.getRoomIdsOfType(this.event.id);
            for each (_local3 in _local1) {
                _local2 = (this.world.getRoomById(_local3) as IRoom);
                dispatch(new InfoEvent(EventConstants.HIGHLIGHT_ACTOR, _local2.machine.id));
            };
        }

    }
}//package net.wooga.pets.controllers.world 
